
<!-- c城市选择器 -->
<script type="text/javascript" src="../Public/js/drag.js"></script>
<script type="text/javascript" src="../Public/js/city_arr.js"></script>
<script type="text/javascript" src="../Public/js/city_func.js"></script>
<link rel="stylesheet" type="text/css" href="../Public/css/css.css" />
<link rel="stylesheet" type="text/css" href="../Public/css/alpha.css" />
<!-- c城市选择器 end-->
<div class="subnav">
    <ul class="crumbs">
        <li>我的位置：</li>
        <li><a href="{$site_url}">{$site_name} </a> </li>
        <li><a href="{$Categorys[$catid]['url']}">&nbsp; &gt; {$Categorys[$catid]['catname']} </a></li>
       
        <div class="clear"></div>
    </ul>
 
</div>
<link rel="stylesheet" href="./Public/Kindeditor/themes/default/default.css" />
<div class="main">
    <table class="classify">
        <tr>
            <th>城市：</th>
            <td><ul>
                <li><a href="{:unsetParam('city',$url_s)}" <?php if(empty($_GET['city'])){ ?> class="whole" <?php }?>>不限</a></li>
                <volist name="bcity_hot"  id="r" >
                  <li><a <?php if($_GET['city']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('city',$url_s)}&city={$r['id']}">{$r['name']}</a></li>
                </volist>
                       <?php if(is_numeric($_GET['city']) == false && !empty($_GET['city'])){?>
                         <li class="{}" ><a  class="whole"  href="{:unsetParam('city',$url_s)}&city={$_GET['city']}">{$_GET['city']}</a></li>                    <?php }?>
                
                    <li><a id="btn_residency" class="whole"  style="color:#F90;" href="javascript:residencySelect()">【其他城市】</a></li>
                <div class="clear"></div>
            </ul></td>
        </tr>

        <tr> 
            <th>空间：</th>
            <td><ul>
                <li><a href="{:unsetParam('itemType',$url_s)}" <?php if(empty($_GET['itemType'])){ ?> class="whole" <?php }?>>不限</a></li>
                <YP:list name="Label" where="genre=17"  order="listorder asc" id="r" limit="50">
                    <li><a <?php if($_GET['itemType']==$r['title']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemType',$url_s)}&itemType={$r['title']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>
        <tr> 
            <th>面积：</th>
            <td><ul>
                <li><a href="{:unsetParam('itemArea',$url_s)}" <?php if(empty($_GET['itemArea'])){ ?> class="whole" <?php }?>>不限</a></li>
                <YP:list name="Label" where="genre=18" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['itemArea']==$r['title']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemArea',$url_s)}&itemArea={$r['title']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>
        <tr> 
            <th>预算：</th>
            <td><ul style=" border-bottom: none;">
                <li><a href="{:unsetParam('budget',$url_s)}" <?php if(empty($_GET['budget'])){ ?> class="whole" <?php }?>>不限</a></li>
                <YP:list name="Label" where="genre=19" id="r" order="listorder asc" limit="50">
                   {if $r['title']!='无预算'} <li><a <?php if($_GET['budget']==$r['title']){ ?> class="whole" <?php } ?> href="{:unsetParam('budget',$url_s)}&budget={$r['title']}">{$r['title']}</a></li>{/if}
                </YP:list> 
                <div class="clear"></div>
            </ul></td>
        </tr>
    </table>

    <div class="left">
        <div class="demand">
            <div class="hd">

                <!-- 下面是前/后按钮代码，如果不需要删除即可 
                <span class="arrow"><a class="next"></a><a class="prev"></a></span>
-->
                <ul>
                <li <?php if(empty($_GET['order'])){ ?> class="on" <?php }?>><a href="{:unsetParam('order',$url_s)}"> 默认排序 </a></li>
                    <li <?php if($_GET['order']=='budget_order'){ ?> class="on" <?php } ?> ><a href="{:unsetParam('order',$url_s)}&order=budget_order">预算 &nbsp; <img src="../Public/images/down.png" alt="" /></a></li>
                    <li <?php if($_GET['order']=='createtime'){ ?> class="on" <?php } ?> ><a href="{:unsetParam('order',$url_s)}&order=createtime">发布时间 &nbsp; <img src="../Public/images/down.png" alt="" /></a></li></ul>
            </div>
            <div class="bd">
                <ul>
                <volist name="list"   id="r">

                    <li>
                        <span class="date"><samp>{$r['createtime']|remianday=###}</samp><br />
                        <p>{$r['bprovince']|jgarea=###}&nbsp;
                         {if $r['itemType']}| &nbsp;{$r['itemType']}&nbsp;{/if} | &nbsp;{if $r['itemArea']}{$r['itemArea']}&nbsp; |{/if}&nbsp; {if $r['budget']=='无预算' || empty($r['budget']) } {else} ￥<?php echo str_replace('万','w',$r['budget']); ?>{/if}
                        </p></span>

                        <a href="index.php?m=Guestbook&a=show&id={$r['id']}" target="_blank">
                            <h3>{$r['bprovince']|jgarea=###} {$r['bcity']|jgarea=###}{$r['itemArea']}{$r['itemType']}</h3>

                            <p><img src="../Public/images/z11.png" alt="" /> &nbsp; {$r['content']|str_cut=###,20}</p>
                        </a>
                    </li>
                </volist>


                    <div class="clear"></div>
                </ul>
  
            </div>
        </div>
        <!--script type="text/javascript">jQuery(".demand").slide({trigger:"click"});</script-->

        <ul class="paging" style=" height:30px; text-align:center">
            <ul >
           {$pages}
           </ul>
        </ul>
    </div>
    <div class="right">
        <ul class="hot">
        <h6> 优秀案例展示</h6>

            <YP:list  name="Case" order="id desc"  limit="6" posid="6">


                <li>
                    <a href="{$r['url']}">
                     <div style="width:278px;height:220px; background:url('{$r['thumb']}') center no-repeat; "></div>

                        <p>店铺：{$r['title']}
                            <span>
                                风格：<YP:list name="Label" where="genre=17" id="v" limit="50">
                                <?php echo $r['itemType'] == $v['id'] ? $v['title'] : ''; ?></YP:list>
                            </span>
                        </p>
                        <p>面积： <YP:list name="Label" where="genre=18" id="v" limit="50">
                            <?php $itemarea= $r['itemArea'] == $v['id'] ? $v['title'] : ''; ?><?php echo str_replace('平方','㎡',$itemarea);?>
                        </YP:list>
                            <span>
                                造价：<YP:list name="Label" where="genre=19" id="v" limit="50">
                                <?php $budget= $r['budget'] == $v['id'] ? $v['title'] : ''; ?><?php echo str_replace('万','w',$budget);?>
                            </YP:list>
                            </span>
                        </p>
                    </a>
                </li>
            </YP:list>

              <div class="demand_ad"><YP:flash flashid="37" key="kid" /></div>
        </ul>
    </div>
    <div class="clear"></div>
</div>



<!--选择城市弹出层-->
<div id="maskLayer" style="display:none">
<iframe id="maskLayer_iframe" frameBorder=0 scrolling=no style="filter:alpha(opacity=50)"></iframe>
<div id="alphadiv" style="filter:alpha(opacity=50);-moz-opacity:0.5;opacity:0.5"></div>
	<div id="drag">
		<h3 id="drag_h"></h3>
		<div id="drag_con"></div><!-- drag_con end -->
	</div>
</div>
 </div> 
 <div id="sublist" style="display:none"></div>  
<script type="text/javascript">
// 是否在数组内
function in_array(needle, haystack) {
	if(typeof needle == 'string' || typeof needle == 'number') {
		for(var i in haystack) {
			if(haystack[i] == needle) {
					return true;
			}
		}
	}
	return false;
}
</script>